<div class="row-fluid sortable">
	<div class="box span12">
		<div class="box-header well" data-original-title>
			<h2><i class="icon-edit"></i> Upload Soal</h2>
			<div class="box-icon">
				<a href="#" class="btn btn-setting btn-round"><i class="icon-cog"></i></a>
				<a href="#" class="btn btn-minimize btn-round"><i class="icon-chevron-up"></i></a>
				<a href="#" class="btn btn-close btn-round"><i class="icon-remove"></i></a>
			</div>
		</div>
		<div class="box-content">
			<form class="form-horizontal" method='post' action='<?php echo base_url();?>index.php/soal/upload' enctype="multipart/form-data">
			  <fieldset>
				<div class="control-group">
				  <label class="control-label" for="upload_soal_kelas">Jenjang</label>
				  <div class="controls">
					<select id="upload_soal_kelas" name='bab_id'>
						<option value="">Pilih Jenjang</option>
						<?php 
							foreach ($jenjang as $group_value) {
								echo "<optgroup label='".$group_value['jenjang_name']."'>";
									foreach ($kelas as $value) {
										if($group_value['jenjang_id'] == $value['kelas_jenjang_id']) echo "<option value='".$value['kelas_id']."'>".$value['kelas_name']."</option>";
									}
								echo "</optgroup>";
							}
						?>
					</select>
				  </div>
				</div>
				<div class="control-group">
				  <label class="control-label" for="upload_soal_bab">Mata Pelajaran</label>
				  <div class="controls">
					<select id="upload_soal_bab" name='bab_id' class="disabled" disabled="">
						<option value="">Pilih BAB</option>
						<?php 
							foreach ($pelajaran as $group_value) {
								echo "<optgroup label='".$group_value['pel_name']." - Semester ".$group_value['pel_semester']."' kelas='".$group_value['pel_kelas_id']."'>";
									foreach ($bab as $value) {
										if($group_value['pel_id'] == $value['bab_pel_id']) echo "<option value='".$value['bab_id']."' pelajaran='".$value['bab_pel_id']."'>".$value['bab_name']."</option>";
									}
								echo "</optgroup>";
							}
						?>
					</select>
				  </div>
				</div>
				<div class="control-group">
				  <label class="control-label" for="date01">File Excel</label>
				  <div class="controls">
					<input type="file" class="input-xlarge" name='userfile' />
					<div style="padding: 3px;">Don't have excel template ? <a href="<?php echo base_url();?>assets/excel/template_upload_soal.xls">Download here</a></div>
				  </div>
				</div>	
				<div class="form-actions">
				  <button type="submit" class="btn btn-primary">Submit</button>
				  <a href="<?php echo base_url();?>index.php/soal" class="btn">Cancel</a>
				</div>
			  </fieldset>
			</form>   
		</div>
	</div><!--/span-->
</div><!--/row-->